import {NgModule} from "@angular/core";
import {Routes, RouterModule} from "@angular/router";
import {AccountsComponent} from "./accounts.component";
import {AccountAddComponent} from "./account-add/account-add.component";
import {AccountUpdateComponent} from "./account-update/account-update.component";
import {AccountAuthorityComponent} from "./account-authority/account-authority.component";
import {AccountAssignRoleComponent} from "./account-assign-role/account-assign-role.component";
import {AccountCreateRoleComponent} from "./account-create-role/account-create-role.component";
import {AccountAssiRoleComponent} from "./account-assi-role/account-assi-role.component";
import {AccountUpdatePwdComponent} from "./account-update-pwd/account-update-pwd.component";
import {AccountSetThemesComponent} from "./account-set-themes/account-set-themes.component";
import {AccountSetPortalsComponent} from "./account-set-portals/account-set-portals.component";
import {AccountSetMenuComponent} from "./account-set-menu/account-set-menu.component";

const routes: Routes = [

  {
    path: "",
    component: AccountsComponent
  },
  {
    path: "add",
    component: AccountAddComponent
  },
  {
    path: "assi",
    component: AccountAssiRoleComponent,
  },
  {
    path: "assign",
    component: AccountAssignRoleComponent,
  },
  {
    path: "create",
    component: AccountCreateRoleComponent
  },
  {
    path: "update",
    component: AccountUpdateComponent
  },
  {
    path: "authority",
    component: AccountAuthorityComponent
  },
  {
    path: "pwd",
    component: AccountUpdatePwdComponent
  },
  {
    path: "themes",
    component: AccountSetThemesComponent
  },
  {
    path: "portals",
    component: AccountSetPortalsComponent
  },
  {
    path: "menu",
    component: AccountSetMenuComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: []
})
export class AccountsRoutingModule {
}
